From: Giovanni Campagna Date: Mon, 24 Dec 2012 17:28:17 +0000 (+0100) Subject: Ping the active window when using the app menu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5154 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ebd1bc83c9a23268b5ff2163c23af50b42d7e16a;p=gnome-shell.git Ping the active window when using the app menu Use the new meta_window_check_alive() to verify if the application is responding after the user activates an action from the app menu. This in particular restores the ability to force quit applications from the menu, even if the use a custom GMenu. https://bugzilla.gnome.org/show_bug.cgi?id=684340 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 64a6d43be..76bbfb080 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -598,6 +598,11 @@ const AppMenuButton = new Lang.Class({ return; menu = new PopupMenu.RemoteMenu(this.actor, this._targetApp.menu, this._targetApp.action_group); + menu.connect('activate', Lang.bind(this, function() { + let win = this._targetApp.get_windows()[0]; + win.check_alive(global.get_current_time()); + })); + } else { if (this.menu.isDummyQuitMenu) return;